Optimal. Leaf size=75 \[ \frac{2 a \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0757447, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.238, Rules used = {3238, 3787, 3771, 2639, 2641} \[ \frac{2 a \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3238
Rule 3787
Rule 3771
Rule 2639
Rule 2641
Rubi steps
\begin{align*} \int (a+a \cos (c+d x)) \sqrt{\sec (c+d x)} \, dx &=\int \frac{a+a \sec (c+d x)}{\sqrt{\sec (c+d x)}} \, dx\\ &=a \int \frac{1}{\sqrt{\sec (c+d x)}} \, dx+a \int \sqrt{\sec (c+d x)} \, dx\\ &=\left (a \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx+\left (a \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \sqrt{\cos (c+d x)} \, dx\\ &=\frac{2 a \sqrt{\cos (c+d x)} E\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{\sec (c+d x)}}{d}+\frac{2 a \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{\sec (c+d x)}}{d}\\ \end{align*}
Mathematica [C] time = 1.01724, size = 141, normalized size = 1.88 \[ -\frac{2 i a \left (-2 \sqrt{1+e^{2 i (c+d x)}} \, _2F_1\left (-\frac{1}{4},\frac{1}{2};\frac{3}{4};-e^{2 i (c+d x)}\right )+2 e^{i (c+d x)} \sqrt{1+e^{2 i (c+d x)}} \, _2F_1\left (\frac{1}{4},\frac{1}{2};\frac{5}{4};-e^{2 i (c+d x)}\right )+e^{2 i (c+d x)}+1\right )}{d \left (1+e^{2 i (c+d x)}\right ) \sqrt{\sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.89, size = 150, normalized size = 2. \begin{align*} -2\,{\frac{\sqrt{ \left ( 2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1 \right ) \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}a\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{-2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1} \left ({\it EllipticF} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) -{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) \right ) }{\sqrt{-2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sin \left ( 1/2\,dx+c/2 \right ) \sqrt{2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \cos \left (d x + c\right ) + a\right )} \sqrt{\sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \cos \left (d x + c\right ) + a\right )} \sqrt{\sec \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a \left (\int \cos{\left (c + d x \right )} \sqrt{\sec{\left (c + d x \right )}}\, dx + \int \sqrt{\sec{\left (c + d x \right )}}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \cos \left (d x + c\right ) + a\right )} \sqrt{\sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]